import request from "@/utils/request"
import type { loginFrom, loginResponesData } from "./type"

enum API {
	LOGIN_URL = "/user/login",
	USERINFO_URL = "/user/info"
}
//登录
export const reqLogin = (data:loginFrom) => request.post<any,loginResponesData>(API.LOGIN_URL,data)

//获取用户信息
export const reqUserInfo = () => request.get(API.USERINFO_URL)